import fetch from '@/utils/fetch'
const ScoreApi = {
    //查询企业回收价格
    getPageList (params) {
      return fetch({
        url: '/api/recycle/score/page',
        method: 'get',
        params: params
      })
    },
    // 添加回收物品积分
    add (params) {
      return fetch({
        url: '/api/recycle/score/add',
        method: 'post',
        data: params
      })
    },
    //修改企业回收价格
    update (params) {
      return fetch({
        url: '/api/recycle/score/' + params.id,
        method: 'put',
        data: params
      })
    },
    // 预加载回收记录
    getOrderList (params) {
        return fetch({
          url: '/api/recycle/order/page',
          method: 'get',
          params: params
        })
      },
    // 预加载全部回收物品
    getTypeList (params) {
        return fetch({
          url: '/api/recycle/type/list',
          method: 'get',
          params: params
        })
    },
    // 查看回收订单详情
    getOrderDetail (params) {
        console.log(params,'111111111111')
        return fetch({
          url: '/api/order/detail/list',
          method: 'get',
          params: params
        })
      },
  }
  export default ScoreApi
  